Repository navigation
Deadlines: certificate expiry, CRA Article 14 and BOD 22-01 clocks - #138
Merged
Merged
Conversation
…locks One deadline model, stored per workspace in the monitor Durable Object (dl:<id>, cra:<CVE>, dlSettings), with the pure rules in public/js/core/deadlines.js shared by the Worker and the Deck. - cert-expiry: from the cert monitor (Free watch included), due when the certificate expires; closes itself when the monitor no longer sees it. The monitor's first alert is its created alert and the 7-day re-alert is replaced by one reminder when a quarter of the time is left. - cra-exploited: only with the CRA opt-in, from Article 14(2) applying (11 Sept 2026), for a CISA KEV match in an asset marked as shipped in a product: early warning 24h and notification 72h after becoming aware (starts at the alert, user can correct it), final report 14 days after the fix is marked available. - kev-due: only with the BOD 22-01 opt-in; the KEV dueDate, end of day UTC. Alerts go to the source monitor's channels when a clock starts and when a quarter of its time is left. CRA alert emails have their own 20 a day limit instead of the 5 a day; certificate and BOD reminders share the 5. The opt-ins need Pro on the server (402 below it). Deck: Deadlines page (steps, sources, mark done or dismiss with a reason, case editor, Copy early-warning facts) and an Overview block. Docs FAQ, changelog, Privacy and Terms updated within TOS 2026-11-25.
…adlines # Conflicts: # worker/monitor.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #137 (feat/watch-default). Do not merge before it.
What
A single deadline model, stored per workspace in the monitor Durable Object next to the monitors (
dl:<id>,cra:<CVE>,dlSettings). The rules are pure code inpublic/js/core/deadlines.js, which both the Worker and the Deck import.cert-expirycra-exploitedkev: true), and the CVE is in an asset marked "shipped in a product"kev-duedueDate, 23:59:59 UTCAlerts
deadline-email:<uid>) capped at 20 a day as a flood guard.Deck
Copy
Verification
npm test: 5156 passed, 0 failed. This includes the newtest/worker/deadlines.test.mjs, which has 34 tests covering:npm run release:check: READY (with a warning that the Worker changed).distbuild (port 5064), with the monitor client stubbed by the realcore/deadlines.jsrules:ddl-, becausedl-is already used by the Downloads page styles.Deploy notes
worker/monitor.js,worker/alert-email.js,worker/checks.js, and the sharedpublic/js/core/deadlines.js). Deploy to staging first. Hosting deploy is needed too.storage.list({ prefix })is used.